<?php
namespace MyClass;
class User extends \MyClass\Common {
    public function Index(){
		
		

		if(!$_SESSION['UserInfo']['id']){
			$this->error("您未登陆",T("Common/Login"));	
		}else{
			$user =$this->m("user")->where("Id=".$_SESSION['UserInfo']['id'])->find();
			//是否有抽奖卷

			$ifycjj = $this->m("sweepstakes")->where("Uid = ".$_SESSION['UserInfo']['id'])->find();
			if($ifycjj){
				$this->s("ifycjj",$ifycjj);
			}
			$this->s("user",$user);
			$this->v();
		}
	

	
	
	}


}